<div id="script_panel">
	<form id="scriptform" target="_blank" action="/admin/admin_form/clearCache">
		<input type="hidden" name="key" value="[$result.key]"/>
		选项：
		<select name="type">
			<option value="file">文件缓存</option>
			<option value="data">统计数据缓存</option>
		</select>
		<input type="button" id="clear_" value="清空" />
	</form>
	<script>
		$("#clear_").click(function(){
			$.ajax({
				url:"/admin/admin_form/clearCache",
				data:$("#scriptform").serialize(),
				type:"post",
				success:function(data){
					if(data){
						alert("清空完成");
					}else{
						alert("清空失败");
					}
				}
			});
		});
	</script>
</div>